//
//  SISSNetworkingManager+MineCooperation.h
//  SISSAPP
//
//  Created by 优房网 on 2017/5/25.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSNetworkingManager.h"
#import "SISSHouseCooperationModel.h"
#import "SISSPassengerCooperationModel.h"
#import "SISSHouseCooperationDetailModel.h"
#import "SISSPassengerCooperationDetailModel.h"
#import "SISSAgentInfoModel.h"

@interface SISSNetworkingManager (MineCooperation)

/**
 6.2.3  删除我发布的房源合作
 
 @param ahcrId 房源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deleteHouseCooperationWithHouseAhcrId:(NSString *)ahcrId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.2.4 删除我发布的客源合作
 
 @param adcrId 客源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deletePassengerCooperationWithPassengerAdcrId:(NSString *)adcrId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.6.1 获取我发布的房源合作 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyReleaseHouseCooperationWithsuccess:(void(^)(NSArray<SISSHouseCooperationModel *> * houseResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.6.2 获取我发布的需求(客源)合作 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyReleasePassengerCooperatioonWithsuccess:(void(^)(NSArray<SISSPassengerCooperationModel *> *passengerResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.7.1 获取我发布的房源合作房源详情 GET请求
 
 @param houseCooperationId 房源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyReleaseHouseCooperationDetailWithCooperationId:(NSString *)houseCooperationId success:(void(^)(SISSHouseCooperationDetailModel  * houseCooperationDetailModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.7.2 获取我发布的合作需求(客源)详情 GET请求
 
 @param passengerCooperationId 客源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyReleasePassengerCooperatioonDetailWithCooperationId:(NSString *)passengerCooperationId success:(void(^)(SISSPassengerCooperationDetailModel *passengerCooperationDetailModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.8.1 获取房源合作合作请求  GET请求
 
 @param houseCooperationId 房源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestHouseCooperationCooperationRequestWithCooperationId:(NSString *)houseCooperationId success:(void(^)(NSArray<SISSAgentInfoModel *> *agentInfos))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.8.2 获取需求(客源)合作合作请求  GET请求
 
 @param passengerCooperationId 客源合作id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerCooperatioonCooperationRequestWithCooperationId:(NSString *)passengerCooperationId success:(void(^)(NSArray<SISSAgentInfoModel *> *agentInfos))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.9.1 更新房源合作请求状态请求
 
 @param houseCooperationId 房源合作id
 @param agentModel 经纪人信息模型
 @param status 请求状态 1:同意 2:拒绝
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateHouseCooperationCooperationRequestWithCooperationId:(NSString *)houseCooperationId agentModel:(SISSAgentInfoModel *)agentModel status:(NSInteger)status success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.9.2 更新客源合作请求状态请求
 
 @param passengerCooperationId 客源合作id
 @param agentModel 经纪人信息模型
 @param status 请求状态 1:同意 2:拒绝
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updatePassengerCooperatioonCooperationRequestWithCooperationId:(NSString *)passengerCooperationId agentModel:(SISSAgentInfoModel *)agentModel status:(NSInteger)status success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.10.1 获取我请求的房源合作 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRequestHouseCooperationWithsuccess:(void(^)(NSArray<SISSHouseCooperationModel *> * houseCooperations))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.10.2 获取我请求的客源合作 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRequestPassengerCooperationWithsuccess:(void(^)(NSArray<SISSPassengerCooperationModel *> * passengerCooperations))successBlock failed:(void(^)(NSError *error))failedBlock;





@end
